target=libtimer.so

cflags=-g -fPIC -c
linkflag=--shared -fPIC

inc=.

src=$(wildcard *.cc)
lib=$(patsubst %.cc,%.o,${src})

${target}:${lib}
	g++ ${linkflag} -o ${target} $^

%.o:%.cc
	g++ ${cflags} $<


clean:
	rm *.so *.o libtimer.so
